#define _CRT_SECURE_NO_WARNINGS
#include<iostream>

using namespace std;

template <class Type1, class Type2>
class myclass

{

public:

    myclass(Type1 a, Type2 b)

    {

        i = a;

        j = b;

    }

    void show()

    {

        cout << i << endl << j << endl;

    }

private:

    Type1 i;

    Type2 j;

};



int main()

{

    myclass<int, double>  obl(10, 0.23);

    myclass<char, char*> ob2('X', "This is a test. ");

    obl.show();

    ob2.show();

    return 0;

}